package _15泛型通配符和泛型上下限;

import java.util.ArrayList;

public class QQPlay {


    public static void main(String[] args) {
        ArrayList<Audi> audis = new ArrayList<>();
        play(audis);


        ArrayList<Jeep> jeeps = new ArrayList<>();
        play(jeeps);

        ArrayList<Dog> dogs = new ArrayList<>();
        //play(dogs);//报错，泛型只能是Car类或者Car得子类
    }
    public static void play(ArrayList<? extends Car> list){

    }
}



